<template>
	<!--
    	作者：1550495493@qq.com
    	时间：2019-07-18
    	描述：下载发布
    -->
	<div class="HomePage">
		<div class="location">
			<div class="location-text fl">
				<img class="location-img fl" src="../../images/home/addBriefing.png" />
        <p class="fr" v-if="briefing.id == null || briefing.id == ''">新增简报</p>
        <p class="fr" v-else>修改简报</p>
      </div>
			<img class="biaotibg fl" src="../../images/home/biaotibg.png" />
		</div>
		<div class="IssuedNotice-box">
			<form id="briefingForm" class="form-box">
				<input type="hidden" name="id" :value="briefing.id" autocomplete="off"/>
				<div class=" form-line input-required">
					<label>简报标题：</label>
					<div class="input-box brief-name">
						<input name="name" class="search-box" type="text" placeholder="请输入标题" v-model="briefing.name" autocomplete="off"/>
					</div>
				</div>
				<div class="search-boxs  imgbox upload-enclosure">
					<label>附件上传：</label>
					<input type="file" id="handIdFront" accept=".txt,.rar,.zip,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.exe,image/*" @change="idFrontImg($event)" style="display: none;" />
          <input type="button" value="上传附件" class="delete write" @click="touchOffIdInput(1)"/>
          <input type="button" value="删除附件" class="delete write" @click="deleteEnclosure()"/>
					<ul class="img-box">
						<li id="enclosure"></li>
					</ul>
          <input type="hidden" name="enclosureUrl" :value="briefing.enclosureUrl" autocomplete="off"/>
         			 <span class="error" v-if="errorEnclosure">请上传附件</span>
				</div>
				<input class="save fl" type="button" value="发布" @click="saveDownload" v-if="briefing.id == null" />
				<input class="save fl" type="button" value="保存" @click="updateDownload" v-else/>
			</form>
		</div>

	</div>
</template>

<script src="./modifyBriefing.js"></script>

<style scoped>
	@import "modifyBriefing.css"
</style>
